import request from "../util/request.js";

export function _login(user) {
    return request({
        url: "/user/login",
        method: "POST",
        data: user
    })
}

export function _register(user) {
    return request({
        url: "/user/register",
        method: "POST",
        data: user
    })
}